@extends('home.layout.index')
@section('content')
<link rel="stylesheet" type="text/css" href="/h/bootstrap/css/bootstrap.min.css" media="screen">
<div id="container">
    <div class="content">
        <div class="section" id="questionList">
            <div class="sort-nav">
                <span class="sort-nav-bar"></span>
                <a href="/home/list?id={{$cate_p['id']}}">{{$cate_p['cate_name']}}</a>
                <span> ► {{$cate_s['cate_name']}}</span>
            </div>

            <form action="/home/list?id={{$id}}" class="sort-searchform">
                <input type="hidden" name="id" value="{{$data[0]['cate_id']}}">

                <input type="text" name="search" class="sort-query input-sm" autocomplete="off" placeholder="请输入搜索关键字" value=""  maxlength="30">
                <input type="submit" value="筛选" class="sort-sbtn1">
            </form>
                <ul class="sort-lst">
                @foreach($tag_name as $k=>$j)
                    <li>

                         <a href="/home/answer/create?qid={{$j['id']}}" target="_self" class="sort-lst-tab">
                            <p class="sort-tit">{{$j['q_title']}}</p>

                            <span class="sort-tag" data-id="225992">{{$j['tag_name']}}</span>

                            <div class="sort-rgt">
                                <span class="sort-rgt-txt">{{$j['count']}}次回答</span>
                                <span class="sort-rgt-txt">{{date('m/d H:i:s',strtotime($j['q_time']))}}</span>
                            </div>
                        </a>
                    </li>
                @endforeach
                </ul>
                <div class="page-num">
                    {!! $data->appends($request)->render()!!}
                </div>
        </div>
        <!-- //section -->
    </div>
</div>
<script src="/h/bootstrap/js/bootstrap.min.js"></script>
@endsection